package com.leyou.trade.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.trade.dto.OrderDTO;
import com.leyou.trade.dto.OrderFormDTO;
import com.leyou.trade.entity.Order;

import java.util.Map;


public interface OrderService extends IService<Order> {
    Long createOrder(OrderFormDTO orderDto);

    OrderDTO queryOrderById(Long orderId);

    String getPayUrl(Long orderId);

    void handleWxNotify(Map<String, String> data);

    Integer queryOrderStatus(Long orderId);

    void evictOrderIfNecessary(Long orderId);
}